package com.xxl.mq.admin.mapper;

import com.xxl.mq.admin.model.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author xuxueli 2019-05-04 16:44:59
 */
@Mapper
public interface UserMapper {

    public int insert(User user);

    public int delete(@Param("id") int id);

    public int deleteByIds(@Param("ids") List<Integer> ids);

    public int update(User user);

    public User loadByUserName(@Param("username") String username);

    public List<User> pageList(@Param("offset") int offset, @Param("pagesize") int pagesize, @Param("username") String username, @Param("status") int status);

    public int pageListCount(@Param("offset") int offset, @Param("pagesize") int pagesize, @Param("username") String username, @Param("status") int status);

}
